home *** CD-ROM | disk | FTP | other *** search
Text File | 1993-02-10 | 5.4 KB | 162 lines | [ttro/ttxt] |
- How to compile:
- "JPEG Convert" by James H. Brunner and
- the Independent JPEG Group's software
- ===========================================
- (this file created with Monaco 9 font)
-
- 1. Obtain the current release of the Independent JPEG Group's software.
- As of the writing of this text, the current public version is v4.
- Here are the instructions for obtaining the current software from the
- Independent JPEG Group (extracted from the Independent JPEG Group's
- "README" file):
-
- The "official" archive site for this software is ftp.uu.net
- (Internet address 137.39.1.9 or 192.48.96.9). The most recent
- released version can always be found there in directory
- graphics/jpeg. This particular version will be archived as
- jpegsrc.v4.tar.Z. If you are on the Internet, you can retrieve
- files from UUNET by anonymous FTP. If you don't have FTP access,
- UUNET's archives are also available via UUCP; contact
- postmaster@uunet.uu.net for information on retrieving files that
- way.
-
- You will have to uncompress and untar the archive. On a UNIX
- machine, this can be done by:
-
- uncompress jpegsrc.v4.tar.Z
-
- which will uncompress and leave the file: jpegsrc.v4.tar
-
- tar -xvf jpegsrc.v4.tar
-
- which will untar (un-archive) the file and create about a zillion
- files in the current directory.
-
- If you are not using a UNIX machine to retrieve the JPEG software, you
- can use "MacCompress" (3.2 or better) to uncompress the file and use
- "tar" (3.0 or better) to un-tar it. Both of these utilities are
- available from sumex-aim.stanford.edu in the info-mac/util directory.
-
- 2. Copy all of the Independent JPEG Group's files into a new directory
- for your project
-
- 3. Copy the JPEG Convert files ("JPEG Convert.h", "JPEG Convert1.c",
- "JPEG Convert2.c", "JPEG Convert3.c", "JPEG Convert.π.rsrc") to the
- same directory.
-
- 4. Create a new Think C project in this directory called
- "JPEG Convert.π". You can create the "pi" character by hitting
- option-p. The "pi" is a convention often used to indicate a
- project. You can use another convention if you wish, however, the
- resource file name must match the project name (followed by ".rsrc").
-
- 5. COPY "jmemansi.c" to "jmemsys.c".
-
- 6. Add the following to the project. The following is divided into a
- suggested segment partitioning. You can partition it differently if
- you wish (if you know what you're doing, you may want to create separate
- library projects for DLIBOBJECTS, CLIBOBJECTS, and COMOBJECTS).
-
- Segment 1:
- JPEG Convert1.c
- JPEG Convert2.c
- JPEG Convert3.c
- MacTraps (library)
-
- Segment 2:
- MacTraps2 (library)
- ANSI (library)
-
- Segment 3:
- (All DLIBOBJECTS from makefile.ansi. These include:)
- jdmaster.c
- jddeflts.c
- jbsmooth.c
- jdarith.c
- jdcolor.c
- jdhuff.c
- jdmcu.c
- jdpipe.c
- jdsample.c
- jquant1.c
- jquant2.c
- jrevdct.c
- jrdjfif.c
- jwrgif.c
- jwrppm.c
- jwrrle.c
- jwrtarga.c
-
- Segment 4:
- (All CLIBOBJECTS from makefile.ansi. These include:)
- jcmaster.c
- jcdeflts.c
- jcarith.c
- jccolor.c
- jcexpand.c
- jchuff.c
- jcmcu.c
- jcpipe.c
- jcsample.c
- jfwddct.c
- jwrjfif.c
- jrdgif.c
- jrdppm.c
- jrdrle.c
- jrdtarga.c
- (All COMOBJECTS from makefile.ansi EXCEPT jerror. These include:)
- jutils.c
- jmemmgr.c
- jmemsys.c
-
- 7. Set up these key preferences in the Think C "Options..." dialog:
-
- Preferences:
- (Nothing critical)
-
- Language Settings:
- Check Pointer Types
- Language Extensions - Think C
- Strict Prototype Enforcement - Require Prototypes
-
- Compiler Settings:
- Don't use: 4-byte ints (unless you want to recompile ANSI)
- Don't use: 8-byte doubles (unless you want to recompile ANSI)
- \p is unsigned char[]
- (I suggest leaving the rest (actually all) as factory defaults)
-
- Code Optimization:
- (check everything)
-
- Debugging:
- (Nothing critical)
-
- Prefix:
- (the prefix area should include 1 line:)
- #define __STDC__ 1
- (note, this is case sensitive and there are 4 underscores total)
-
- 8. Set up the project type:
-
- Choose the "Application" radio button.
-
- Set the Creator to: Ijgp (4 characters, case sensitive, first is uppercase-eye)
-
- Set the partition to 512. (It could probably be smaller if it has to.)
-
- Set the following SIZE flags (58C0):
- Multi-Finder Aware
- Background Null Events
- Suspend & Resume Events
- 32-Bit Compatible
- HighLevelEvent Aware
-
- 9. Build the application. The resultant application should be saved as "JPEG Convert".
-
- 10. After building the application, you probably want to set the desired memory size (in the
- Finder with "Get Info") to something much larger like 4096. When launched, the application
- will attempt to get 4 meg of memory. If less is available, that is OK if at least 512k is
- still available. More memory allows the JPEG code to function more efficiently without
- having to create temp files.
-
- ================= That's it ========================